import request from '@/utils/request'
// let utils = require("utility");
// b7daed9edcfe4dfebbe1b36026b74511

// let baseUrl = "https://app.cloopen.com:8883/";
// let baseApi = "2013-12-26/Accounts/";
// let accountSid = "8aaf07086efded7c016efea1c8a60112/";
// let endUrl = "SMS/TemplateSMS?sig=";
// let token = "b7daed9edcfe4dfebbe1b36026b74511";

// let md5JM = "8aaf07086efded7c016efea1c8a60112b7daed9edcfe4dfebbe1b36026b745111576463448839"
// let base64JM = "8aaf07086efded7c016efea1c8a60112:1576463448839"
// console.log(window.btoa("8aaf07086efded7c016efea1c8a60112:1576463448839"));
// console.log(utils.md5(md5JM).toUpperCase())
// 获取短信验证码
export function getDx(data: any) {
    // let times = "20191216110411";
    // console.log(`Authorization`,window.btoa(`${accountSid}:${times}`));
    // console.log(`sig`,utils.md5(`${accountSid}${token}${times}`).toUpperCase());
    return request({
        url:"http://127.0.0.1:3001/i7b/getCaptcha",
        method: 'post',
        data: {
            "to": "15080806520", "appId": "8aaf07086efded7c016efea1c9030118", "templateId": "1", "datas": ["替换内容1", "替换内容2"]
        }
    })
}